<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />
<title>Untitled Document</title>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/reset.css" type="text/css" media="all"/>
<link rel="stylesheet" href="<?php echo STATIC_DOMAIN;?>css/buiding.css" type="text/css" media="all"/>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN;?>js/jquery-1.8.2.min.js"></script>
</head>
<body>
	<div id="warp">
    	<div id="header">
        </div>
        <!-- end header-->
        <div id="content">
        	<div id="leftMenu">
            	<ul class="navi">
                	<li><a>Trang chủ</a></li>
                    <li><a>Giới thiệu</a></li>
                    <li><a>Hướng dẫn</a></li>
                    <li><a>Chat</a></li>
                    <li class="marbottom20"><a>Đăng nhập</a></li>
                    
                	<li><a>Forum</a></li>
                    <li><a>Cốt truyện</a></li>
                    <li><a>Trợ giúp</a></li>
                    <li><a>Liên hệ</a></li>
                    <li><a>Tìm hiểu</a></li>
                    <li><a href="<?php echo site_url("logout");?>">Thoát ra</a></li>
                </ul>
            </div>
        	<div id="viewInfo" class="padtop20 padleft20 tbl-list">
                <table class="tbl-list">
                    <tr>
                        <td colspan="3"><label><?php echo $info[0]['abbreviated'];?></label></td>
                    </tr>
                    <?php
                    $index = 1;
                    foreach($lstMem as $member)
                    {
                    ?>
                        <tr>
                            <td class="ver-middle" width="40"><?php echo $index;?></td>
                            <td width="150">
                                <p>
                                    <a href="#"><?php echo $member['username'];?></a>
                                </p>
                            </td>
                            
                             <td class="ver-middle">
                                <?php if($uid != $member['uid']){?>
                                    <img onclick="remove_member('<?php echo $member['uid'];?>');" src="<?php echo STATIC_DOMAIN;?>images/icons/remove.png" width="16" height="16" />
                                <?php }else{?>
                                    
                                <?php }?>
                             </td>
                        </tr>
                    <?php
                    $index++;
                    }
                    ?>
                </table>
            </div>
        </div>
     </div>
     <script>
     function remove_member(memberid){
		var data = "memberid="+ memberid; 
		$.ajax({
			 type: "POST",
			 url: '<?php echo site_url("alliance/rev_member");?>',
			 data: data,
			 success: function(html){
				window.location.reload();
			 }
		 });	
     }
     
     </script>
</body>
</html>